home *** CD-ROM | disk | FTP | other *** search
/ Future Workshop / Future Workshop.iso / paintdrw / lightlib / language.z / PEOPLE.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-22  |  13.7 KB  |  496 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Light Lib Images"
  5.    ClientHeight    =   7932
  6.    ClientLeft      =   696
  7.    ClientTop       =   792
  8.    ClientWidth     =   10572
  9.    Height          =   8676
  10.    Icon            =   PEOPLE.FRX:0000
  11.    Left            =   648
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   7932
  14.    ScaleWidth      =   10572
  15.    Top             =   96
  16.    Width           =   10668
  17.    Begin CommonDialog CMDialog1 
  18.       DialogTitle     =   "Select Image file"
  19.       Filter          =   "BMP (*.bmp)|*.BMP|TIF (*.tif)|*.TIF|PCX (*.pcx)|*.PCX|GIF (*.gif)|*.GIF|JPG (*.jpg)|*.JPG"
  20.       Left            =   6600
  21.       Top             =   7320
  22.    End
  23.    Begin CommandButton Command2 
  24.       Caption         =   "Delete"
  25.       Height          =   615
  26.       Left            =   9240
  27.       TabIndex        =   27
  28.       Top             =   7200
  29.       Width           =   1215
  30.    End
  31.    Begin CommandButton Command1 
  32.       Caption         =   "Add"
  33.       Height          =   615
  34.       Left            =   7320
  35.       TabIndex        =   28
  36.       Top             =   7200
  37.       Width           =   1215
  38.    End
  39.    Begin TextBox Text13 
  40.       DataField       =   "Phone"
  41.       DataSource      =   "Data1"
  42.       Height          =   375
  43.       Left            =   1680
  44.       TabIndex        =   14
  45.       Text            =   "Phone"
  46.       Top             =   6240
  47.       Width           =   1815
  48.    End
  49.    Begin TextBox Text12 
  50.       DataField       =   "Zip"
  51.       DataSource      =   "Data1"
  52.       Height          =   375
  53.       Left            =   1680
  54.       TabIndex        =   13
  55.       Text            =   "ZIP"
  56.       Top             =   5760
  57.       Width           =   1815
  58.    End
  59.    Begin TextBox Text11 
  60.       DataField       =   "Country"
  61.       DataSource      =   "Data1"
  62.       Height          =   375
  63.       Left            =   1680
  64.       TabIndex        =   12
  65.       Text            =   "Country"
  66.       Top             =   5280
  67.       Width           =   3975
  68.    End
  69.    Begin TextBox Text10 
  70.       DataField       =   "State"
  71.       DataSource      =   "Data1"
  72.       Height          =   375
  73.       Left            =   1680
  74.       TabIndex        =   11
  75.       Text            =   "State"
  76.       Top             =   4800
  77.       Width           =   3975
  78.    End
  79.    Begin TextBox Text9 
  80.       DataField       =   "City"
  81.       DataSource      =   "Data1"
  82.       Height          =   375
  83.       Left            =   1680
  84.       TabIndex        =   10
  85.       Text            =   "City"
  86.       Top             =   4320
  87.       Width           =   3975
  88.    End
  89.    Begin TextBox Text8 
  90.       DataField       =   "Addr2"
  91.       DataSource      =   "Data1"
  92.       Height          =   375
  93.       Left            =   1680
  94.       TabIndex        =   9
  95.       Text            =   "Address 2"
  96.       Top             =   3840
  97.       Width           =   3975
  98.    End
  99.    Begin TextBox Text6 
  100.       DataField       =   "Hair"
  101.       DataSource      =   "Data1"
  102.       Height          =   375
  103.       Left            =   1680
  104.       TabIndex        =   8
  105.       Text            =   "Hair"
  106.       Top             =   2760
  107.       Width           =   1575
  108.    End
  109.    Begin TextBox Text5 
  110.       DataField       =   "Eyes"
  111.       DataSource      =   "Data1"
  112.       Height          =   375
  113.       Left            =   1680
  114.       TabIndex        =   7
  115.       Text            =   "Eyes"
  116.       Top             =   2280
  117.       Width           =   1575
  118.    End
  119.    Begin TextBox Text4 
  120.       DataField       =   "BirthDate"
  121.       DataSource      =   "Data1"
  122.       Height          =   375
  123.       Left            =   1680
  124.       TabIndex        =   6
  125.       Text            =   "BirthDate"
  126.       Top             =   1800
  127.       Width           =   2055
  128.    End
  129.    Begin TextBox Text3 
  130.       DataField       =   "SizeCM"
  131.       DataSource      =   "Data1"
  132.       Height          =   375
  133.       Left            =   1680
  134.       TabIndex        =   5
  135.       Text            =   "Size"
  136.       Top             =   1320
  137.       Width           =   735
  138.    End
  139.    Begin LightLibImage Image1 
  140.       Prop26          =   -1  'True
  141.       Prop14          =   -1  'True
  142.       Prop18          =   -1  'True
  143.       Prop15          =   -1  'True
  144.       Prop17          =   -1  'True
  145.       Prop24          =   -1  'True
  146.       Prop13          =   -1  'True
  147.       Prop21          =   -1  'True
  148.       Prop23          =   -1  'True
  149.       Prop22          =   -1  'True
  150.       Prop25          =   -1  'True
  151.       Prop12          =   -1  'True
  152.       Prop19          =   -1  'True
  153.       Prop20          =   -1  'True
  154.       Dummy           =   0
  155.       Error           =   0
  156.       ExecFunc        =   ""
  157.       FileName        =   "c:\lightlib\samples\G_256_01.BMP"
  158.       Height          =   4335
  159.       Left            =   6120
  160.       ParLog1         =   0   'False
  161.       ParLog2         =   0   'False
  162.       ParLog3         =   0   'False
  163.       ParNum1         =   0
  164.       ParNum2         =   0
  165.       ParNum3         =   0
  166.       ParStr1         =   ""
  167.       ParStr2         =   ""
  168.       ParStr3         =   ""
  169.       Top             =   120
  170.       Prop11          =   -1  'True
  171.       Width           =   4455
  172.       Zoom_X          =   3.228
  173.       Zoom_Y          =   3.228
  174.    End
  175.    Begin TextBox Text14 
  176.       DataField       =   "Image256"
  177.       DataSource      =   "Data1"
  178.       Height          =   375
  179.       Left            =   1680
  180.       TabIndex        =   4
  181.       Text            =   "Image256"
  182.       Top             =   6840
  183.       Width           =   1935
  184.    End
  185.    Begin TextBox Text7 
  186.       DataField       =   "Addr1"
  187.       DataSource      =   "Data1"
  188.       Height          =   375
  189.       Left            =   1680
  190.       TabIndex        =   3
  191.       Text            =   "Address 1"
  192.       Top             =   3360
  193.       Width           =   3975
  194.    End
  195.    Begin TextBox Text2 
  196.       DataField       =   "FirstName"
  197.       DataSource      =   "Data1"
  198.       Height          =   375
  199.       Left            =   1680
  200.       TabIndex        =   2
  201.       Text            =   "FirstName"
  202.       Top             =   840
  203.       Width           =   4095
  204.    End
  205.    Begin TextBox Text1 
  206.       DataField       =   "Name"
  207.       DataSource      =   "Data1"
  208.       Height          =   375
  209.       Left            =   1680
  210.       TabIndex        =   0
  211.       Text            =   "Name"
  212.       Top             =   360
  213.       Width           =   4095
  214.    End
  215.    Begin Data Data1 
  216.       Connect         =   ""
  217.       DatabaseName    =   "C:\LIGHTLIB\MSVB\PEOPLE.MDB"
  218.       Exclusive       =   0   'False
  219.       Height          =   375
  220.       Left            =   0
  221.       Options         =   0
  222.       ReadOnly        =   0   'False
  223.       RecordSource    =   "People"
  224.       Top             =   7560
  225.       Width           =   6015
  226.    End
  227.    Begin Label Label13 
  228.       Caption         =   "Image"
  229.       Height          =   255
  230.       Left            =   360
  231.       TabIndex        =   26
  232.       Top             =   6840
  233.       Width           =   1095
  234.    End
  235.    Begin Label Label12 
  236.       Caption         =   "Phone"
  237.       Height          =   255
  238.       Left            =   360
  239.       TabIndex        =   25
  240.       Top             =   6240
  241.       Width           =   1095
  242.    End
  243.    Begin Label Label11 
  244.       Caption         =   "ZIP"
  245.       Height          =   255
  246.       Left            =   360
  247.       TabIndex        =   24
  248.       Top             =   5760
  249.       Width           =   975
  250.    End
  251.    Begin Label Label10 
  252.       Caption         =   "Country"
  253.       Height          =   255
  254.       Left            =   360
  255.       TabIndex        =   23
  256.       Top             =   5280
  257.       Width           =   855
  258.    End
  259.    Begin Label Label9 
  260.       Caption         =   "State"
  261.       Height          =   255
  262.       Left            =   360
  263.       TabIndex        =   22
  264.       Top             =   4800
  265.       Width           =   855
  266.    End
  267.    Begin Label Label8 
  268.       Caption         =   "City"
  269.       Height          =   255
  270.       Left            =   360
  271.       TabIndex        =   21
  272.       Top             =   4320
  273.       Width           =   855
  274.    End
  275.    Begin Label Label7 
  276.       Caption         =   "Address"
  277.       Height          =   255
  278.       Left            =   360
  279.       TabIndex        =   20
  280.       Top             =   3480
  281.       Width           =   975
  282.    End
  283.    Begin Label Label6 
  284.       Caption         =   "Hair"
  285.       Height          =   255
  286.       Left            =   360
  287.       TabIndex        =   19
  288.       Top             =   2880
  289.       Width           =   1095
  290.    End
  291.    Begin Label Label5 
  292.       Caption         =   "Eyes"
  293.       Height          =   255
  294.       Left            =   360
  295.       TabIndex        =   18
  296.       Top             =   2400
  297.       Width           =   975
  298.    End
  299.    Begin Label Label4 
  300.       Caption         =   "Birthdate"
  301.       Height          =   255
  302.       Left            =   360
  303.       TabIndex        =   17
  304.       Top             =   1800
  305.       Width           =   1095
  306.    End
  307.    Begin Label Label3 
  308.       Caption         =   "Size"
  309.       Height          =   255
  310.       Left            =   360
  311.       TabIndex        =   16
  312.       Top             =   1320
  313.       Width           =   1095
  314.    End
  315.    Begin Label Label2 
  316.       Caption         =   "First Name"
  317.       Height          =   255
  318.       Left            =   360
  319.       TabIndex        =   15
  320.       Top             =   840
  321.       Width           =   1215
  322.    End
  323.    Begin Label Label1 
  324.       Caption         =   "Name"
  325.       Height          =   255
  326.       Left            =   360
  327.       TabIndex        =   1
  328.       Top             =   360
  329.       Width           =   1215
  330.    End
  331.    Begin Shape Shape1 
  332.       Height          =   7335
  333.       Left            =   120
  334.       Shape           =   4  'Rounded Rectangle
  335.       Top             =   120
  336.       Width           =   5895
  337.    End
  338.    Begin Menu File 
  339.       Caption         =   "&File"
  340.       Begin Menu Open 
  341.          Caption         =   "&Open"
  342.       End
  343.       Begin Menu Close 
  344.          Caption         =   "&Close"
  345.       End
  346.    End
  347.    Begin Menu Edit 
  348.       Caption         =   "&Edit"
  349.       Begin Menu First 
  350.          Caption         =   "&First"
  351.       End
  352.       Begin Menu Next 
  353.          Caption         =   "&Next"
  354.       End
  355.       Begin Menu Previous 
  356.          Caption         =   "&Previous"
  357.       End
  358.       Begin Menu Last 
  359.          Caption         =   "&Last"
  360.       End
  361.    End
  362.    Begin Menu Image 
  363.       Caption         =   "&Image"
  364.       Begin Menu Zoomx2 
  365.          Caption         =   "&Zoom x 2"
  366.       End
  367.       Begin Menu ZoomM2 
  368.          Caption         =   "Z&oom / 2"
  369.       End
  370.       Begin Menu FitIntoWindow 
  371.          Caption         =   "&Fit into window"
  372.       End
  373.       Begin Menu Sep1 
  374.          Caption         =   "-"
  375.       End
  376.       Begin Menu Rotate90 
  377.          Caption         =   "&Rotate 90"
  378.       End
  379.       Begin Menu Rotate180 
  380.          Caption         =   "R&otate180"
  381.       End
  382.       Begin Menu Rotate270 
  383.          Caption         =   "Ro&tate270"
  384.       End
  385.       Begin Menu Sep2 
  386.          Caption         =   "-"
  387.       End
  388.       Begin Menu Print 
  389.          Caption         =   "&Print"
  390.       End
  391.       Begin Menu Scan 
  392.          Caption         =   "&Scan"
  393.       End
  394.    End
  395. Sub Close_Click ()
  396.     End
  397. End Sub
  398. Sub Command1_Click ()
  399.     Data1.Recordset.AddNew
  400. End Sub
  401. Sub Command2_Click ()
  402.     Data1.Recordset.Delete
  403. End Sub
  404. Sub Data1_Reposition ()
  405.     If Text14.Text = "" Then
  406.     Image1.FileName = LightLibInstallPath("") + "g_256_11.bmp"
  407.     Else
  408.     Image1.FileName = LightLibInstallPath("") + Text14.Text
  409.     End If
  410. End Sub
  411. Sub First_Click ()
  412.     Data1.Recordset.MoveFirst
  413. End Sub
  414. Sub FitIntoWindow_Click ()
  415.     Image1.ParStr1 = "WINDOW"
  416.     Image1.ExecFunc = "FIT"
  417. End Sub
  418. Sub Form_Load ()
  419.     Data1.DatabaseName = LightLibInstallPath("") + "PEOPLE.MDB"
  420. End Sub
  421. Sub Image1_DblClick ()
  422.     On Error Resume Next
  423.     Dim OpenFileName As String
  424.     Form1.CMDialog1.InitDir = "C:\LIGHTLIB\SAMPLES"
  425.     Form1.CMDialog1.CancelError = True
  426.     Form1.CMDialog1.Filename = ""
  427.     Form1.CMDialog1.Action = 1
  428.     If Err <> 32755 Then 'user pressed cancel
  429.     OpenFileName = Form1.CMDialog1.Filename
  430.     End If
  431.     If Len(OpenFileName) > 0 Then
  432.     Text14.Text = Form1.CMDialog1.Filetitle
  433.     Image1.FileName = OpenFileName
  434.     End If
  435. End Sub
  436. Sub Last_Click ()
  437.     Data1.Recordset.MoveLast
  438. End Sub
  439. Static Function LightLibInstallPath (ByVal cNewPath As String)
  440.     Static cPath As String
  441.     If cNewPath = "" Then
  442.     If cPath = "" Then
  443.         cPath = "C:\LIGHTLIB\SAMPLES\"
  444.     End If
  445.     Else
  446.     cPath = cNewPath
  447.     End If
  448.     LightLibInstallPath = cPath
  449. End Function
  450. Sub Next_Click ()
  451.     Data1.Recordset.MoveNext
  452.     If Data1.Recordset.EOF Then
  453.     Data1.Recordset.MoveLast
  454.     End If
  455. End Sub
  456. Sub Open_Click ()
  457.     Image1_DblClick
  458. End Sub
  459. Sub Previous_Click ()
  460.     Data1.Recordset.MovePrevious
  461.     If Data1.Recordset.BOF Then
  462.     Data1.Recordset.MoveFirst
  463.     End If
  464. End Sub
  465. Sub Print_Click ()
  466.     Image1.ParLog1 = False
  467.     Image1.ExecFunc = "PRINT"
  468. End Sub
  469. Sub Rotate180_Click ()
  470.     Image1.ParNum1 = 180
  471.     Image1.ExecFunc = "ROTATE"
  472. End Sub
  473. Sub Rotate270_Click ()
  474.     Image1.ParNum1 = 270
  475.     Image1.ExecFunc = "ROTATE"
  476. End Sub
  477. Sub Rotate90_Click ()
  478.     Image1.ParNum1 = 90
  479.     Image1.ExecFunc = "ROTATE"
  480. End Sub
  481. Sub Scan_Click ()
  482.     Image1.ExecFunc = "SCAN"
  483. End Sub
  484. Sub ZoomM2_Click ()
  485.     Image1.ParNum1 = 1 / 2
  486.     Image1.ParNum2 = 1 / 2
  487.     Image1.ParStr1 = "FACTOR"
  488.     Image1.ExecFunc = "ZOOM"
  489. End Sub
  490. Sub Zoomx2_Click ()
  491.     Image1.ParNum1 = 2
  492.     Image1.ParNum2 = 2
  493.     Image1.ParStr1 = "FACTOR"
  494.     Image1.ExecFunc = "ZOOM"
  495. End Sub
  496.